package com.demo.java.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
@RequestMapping("/web/api/v1/apiGateway")
public class ApiGatewayTestController {

    @GetMapping("test")
    public Object test() {
        Map<String, Object> res = new HashMap();
        res.put("code", "100000");
        res.put("msg", "success");
        res.put("data", "hello world!");
        return res;
    }
}
